<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>运算符重载程序实例 | Leon&#39;s blog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="1.赋值运算符和下标运算符重载程序实例整型动态数组类的实现。在下面的整型数组类IntArray中，定义了赋值运算符重载函数和下标运算符重载函数。">
<meta property="og:type" content="article">
<meta property="og:title" content="运算符重载程序实例">
<meta property="og:url" content="https://leonlee233.github.io/2020/06/15/%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%AE%9E%E4%BE%8B/index.html">
<meta property="og:site_name" content="Leon&#39;s blog">
<meta property="og:description" content="1.赋值运算符和下标运算符重载程序实例整型动态数组类的实现。在下面的整型数组类IntArray中，定义了赋值运算符重载函数和下标运算符重载函数。">
<meta property="og:locale">
<meta property="article:published_time" content="2020-06-15T14:26:42.000Z">
<meta property="article:modified_time" content="2023-10-26T05:45:42.713Z">
<meta property="article:author" content="Leon Lee">
<meta property="article:tag" content="学习心得">
<meta property="article:tag" content="Hide">
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@https:&#x2F;&#x2F;twitter.com&#x2F;leonwithleo">
  
    <link rel="alternate" href="/atom.xml" title="Leon's blog" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
  
<meta name="generator" content="Hexo 6.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Leon&#39;s blog</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/">主页</a>
        
          <a class="main-nav-link" href="/archives">归档</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Suche"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Suche"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://leonlee233.github.io"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-运算符重载程序实例" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2020/06/15/%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%AE%9E%E4%BE%8B/" class="article-date">
  <time class="dt-published" datetime="2020-06-15T14:26:42.000Z" itemprop="datePublished">2020-06-15</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      运算符重载程序实例
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h3 id="1-赋值运算符和下标运算符重载程序实例"><a href="#1-赋值运算符和下标运算符重载程序实例" class="headerlink" title="1.赋值运算符和下标运算符重载程序实例"></a>1.赋值运算符和下标运算符重载程序实例</h3><p>整型动态数组类的实现。在下面的整型数组类IntArray中，定<br>义了赋值运算符重载函数和下标运算符重载函数。</p>
<span id="more"></span>  
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br></pre></td><td class="code"><pre><span class="line">// IntArray.h</span><br><span class="line">class IntArray </span><br><span class="line">&#123;</span><br><span class="line">public:</span><br><span class="line"> IntArray(int = 10); </span><br><span class="line"> ~IntArray(); </span><br><span class="line"> IntArray&amp; operator=(const IntArray &amp;); //重载赋值运算符</span><br><span class="line"> int&amp; operator[] (int); //重载下标操作符</span><br><span class="line"> void DisplayArrayInfo();</span><br><span class="line">private:</span><br><span class="line"> int m_size; // 数组大小</span><br><span class="line"> int *m_ptr; // 指向数组第一个元素的指针</span><br><span class="line">&#125;;</span><br><span class="line">// IntArray.cpp</span><br><span class="line"><span class="comment">#include &quot;IntArray.h&quot;</span></span><br><span class="line"><span class="comment">#include &lt;assert.h&gt;</span></span><br><span class="line"><span class="comment">#include &lt;iostream&gt;</span></span><br><span class="line">using namespace std;</span><br><span class="line">//定义构造函数</span><br><span class="line">IntArray::IntArray(int arraySize)</span><br><span class="line">&#123;</span><br><span class="line"> m_size = (arraySize &gt; 0 ? arraySize:10);</span><br><span class="line"> m_ptr = new int[m_size];</span><br><span class="line"> assert(m_ptr != 0);</span><br><span class="line"> <span class="keyword">for</span> (int i = 0; i &lt; m_size; i++)</span><br><span class="line"> m_ptr[ i ] = 0;</span><br><span class="line">&#125;</span><br><span class="line">//定义析构函数</span><br><span class="line">IntArray::~<span class="function"><span class="title">IntArray</span></span>()</span><br><span class="line">&#123;</span><br><span class="line"> delete [] m_ptr; </span><br><span class="line">&#125;</span><br><span class="line">//定义赋值运算符重载函数</span><br><span class="line">IntArray&amp;</span><br><span class="line"> IntArray::operator=(const IntArray &amp;right)</span><br><span class="line">&#123;</span><br><span class="line"> <span class="keyword">if</span> (&amp;right != this) // 检测自赋值</span><br><span class="line"> &#123; </span><br><span class="line"> <span class="keyword">if</span>(m_size != right.m_size) </span><br><span class="line"> &#123; </span><br><span class="line"> delete [] m_ptr;</span><br><span class="line"> m_size = right.m_size;</span><br><span class="line"> m_ptr = new int[m_size];</span><br><span class="line"> assert(m_ptr != 0);</span><br><span class="line"> &#125;</span><br><span class="line"> <span class="keyword">for</span> (int i = 0; i &lt;m_size; i++)</span><br><span class="line"> m_ptr[i] = right.m_ptr[i];</span><br><span class="line"> &#125;</span><br><span class="line"> <span class="built_in">return</span> *this; </span><br><span class="line">&#125;</span><br><span class="line">//定义下标运算符重载函数</span><br><span class="line">int&amp; IntArray::operator[] (int subscript)</span><br><span class="line">&#123;</span><br><span class="line"> assert(0 &lt;= subscript &amp;&amp; subscript &lt; m_size); //下标越界，退出程序</span><br><span class="line"> <span class="built_in">return</span> m_ptr[subscript]; </span><br><span class="line">&#125;</span><br><span class="line">void IntArray::<span class="function"><span class="title">DisplayArrayInfo</span></span>()</span><br><span class="line">&#123;</span><br><span class="line"> <span class="keyword">for</span>(int i=0;i&lt;m_size;i++)</span><br><span class="line"> cout&lt;&lt;<span class="string">m_ptr[i]&lt;&lt;&#x27; &#x27;;</span></span><br><span class="line"><span class="string"> cout&lt;&lt;endl;</span></span><br><span class="line"><span class="string">&#125;</span></span><br><span class="line"><span class="string">// testIntArray.cpp</span></span><br><span class="line"><span class="string">#include &lt;iostream&gt;</span></span><br><span class="line"><span class="string">#include &quot;IntArray.h&quot;</span></span><br><span class="line"><span class="string">using namespace std;</span></span><br><span class="line"><span class="string">int main()</span></span><br><span class="line"><span class="string">&#123;</span></span><br><span class="line"><span class="string"> IntArray arrayA;</span></span><br><span class="line"><span class="string"> IntArray arrayB(5);</span></span><br><span class="line"><span class="string"> for (int i=0;i&lt;5;i++)</span></span><br><span class="line"><span class="string"> arrayB[i]=i+1; //调用下标运算符函数</span></span><br><span class="line"><span class="string"> cout&lt;&lt;&quot;数组arrayA为：&quot;&lt;&lt;endl;</span></span><br><span class="line"><span class="string"> arrayA.DisplayArrayInfo();</span></span><br><span class="line"><span class="string"> cout&lt;&lt;&quot;数组arrayB为：&quot;&lt;&lt;endl;</span></span><br><span class="line"><span class="string"> arrayB.DisplayArrayInfo();</span></span><br><span class="line"><span class="string"> arrayA=arrayB; //调用赋值运算符函数</span></span><br><span class="line"><span class="string"> cout&lt;&lt;&quot;执行arrayA=arrayB后，数组arrayA为：&quot;&lt;&lt;endl;</span></span><br><span class="line"><span class="string"> arrayA.DisplayArrayInfo();</span></span><br><span class="line"><span class="string"> return 0;</span></span><br><span class="line"><span class="string">&#125;</span></span><br></pre></td></tr></table></figure>
<p>运行结果为：<br>数组arrayA为：<br>0 0 0 0 0 0 0 0 0 0<br>数组arrayB为：<br>1 2 3 4 5<br>执行arrayA&#x3D;arrayB后，<br>数组arrayA为：<br>1 2 3 4 5<br>• 提示： “ arrayB[i]&#x3D;i+1;”则相当于“arrayB.m_ptr[i]&#x3D;i+1;”。重载了下<br>标运算符“[]”,可以直接把数组对象当做数组名使用，非常直观易懂，而实<br>际上还是要调用成员函数，为对象的指针成员指向内存的内容操作。</p>
<h3 id="2-面向对象方法程序实例–-友元和运算符重载"><a href="#2-面向对象方法程序实例–-友元和运算符重载" class="headerlink" title="2.面向对象方法程序实例– 友元和运算符重载"></a>2.面向对象方法程序实例– 友元和运算符重载</h3><p>设计一个Student类，每名学生包含学号、姓名和总评成绩3个<br>属性，学生的学号、姓名和总评成绩可以通过初始化得到，学生的总评成绩<br>可以通过赋值运算符“&#x3D;”更改。能够通过普通函数display函数输出学生<br>的学号、姓名和总评成绩等信息。要求：<br>①合理地设计属性和方法。<br>②合理地设计类成员的访问控制方式和友元。<br>③考虑如何初始化学生对象的“学号”和“姓名”属性。<br>④考虑如何通过“对象名&#x3D;总评成绩”实现给对象的“总评成绩”属性赋值。<br>⑤用主函数测试类。<br>⑥要求用多文件结构实现程序。<br>类名 Student<br>含义 C++描述<br>属性<br>学号<br>姓名<br>总评成绩<br>private: char *m_pcSno;<br>private: char *m_pcSname;<br>private: int m_nScore;<br>方法<br>构造函数<br>析构函数<br>&#x3D;运算符重载<br>public: Student(char *pcSno, char *pcSname, int<br>nScore);<br>public: ~Student();<br>public: Student&amp; operator&#x3D;(int nScore);<br>友元 显示学生信息 friend void display(const Student &amp;stu);</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br></pre></td><td class="code"><pre><span class="line">// Student.h</span><br><span class="line">class Student</span><br><span class="line">&#123;</span><br><span class="line">private:</span><br><span class="line"> char *m_pcSno; // 学号</span><br><span class="line"> char *m_pcSname; // 姓名</span><br><span class="line"> int m_nScore; // 总评成绩</span><br><span class="line">public:</span><br><span class="line"> Student(char *pcSno, char *pcSname, int nScore); // 构造函数</span><br><span class="line"> ~Student(); // 析构函数</span><br><span class="line"> Student&amp; operator=(int nScore); // =运算符重载</span><br><span class="line"> friend void display(const Student &amp;stu);</span><br><span class="line">&#125;;</span><br><span class="line">// Student.cpp</span><br><span class="line"><span class="comment">#include &quot;Student.h&quot;</span></span><br><span class="line"><span class="comment">#include &lt;iostream&gt;</span></span><br><span class="line">using namespace std;</span><br><span class="line">Student::Student(char *pcSno, char *pcSname, </span><br><span class="line">int nScore) &#123;</span><br><span class="line"> m_pcSno = new char[strlen(pcSno)+1];</span><br><span class="line"> strcpy(m_pcSno, pcSno);</span><br><span class="line"> m_pcSname = new char[strlen(pcSname)+1];</span><br><span class="line"> strcpy(m_pcSname, pcSname);</span><br><span class="line"> m_nScore = nScore; &#125;</span><br><span class="line">Student::~<span class="function"><span class="title">Student</span></span>()</span><br><span class="line">&#123;</span><br><span class="line"> delete []m_pcSno;</span><br><span class="line"> delete []m_pcSname; &#125;</span><br><span class="line">Student&amp; Student::operator=(int nScore) &#123;</span><br><span class="line"> m_nScore = nScore;</span><br><span class="line"> <span class="built_in">return</span> *this;</span><br><span class="line">&#125;</span><br><span class="line">void display(const Student &amp;stu) &#123;</span><br><span class="line"> cout&lt;&lt;<span class="string">&quot;学号：&quot;</span>&lt;&lt;<span class="string">stu.m_pcSno&lt;&lt;endl</span></span><br><span class="line"><span class="string"> &lt;&lt;&quot;姓名：&quot;&lt;&lt;stu</span>.m_pcSname&lt;&lt;<span class="string">endl</span></span><br><span class="line"><span class="string"> &lt;&lt;&quot;总评成绩：&quot;&lt;&lt;stu.m_nScore&lt;&lt;endl</span>; &#125;</span><br><span class="line">// testStudent.cpp</span><br><span class="line"><span class="comment">#include &quot;Student.h&quot;</span></span><br><span class="line"><span class="comment">#include &lt;iostream&gt;</span></span><br><span class="line">using namespace std;</span><br><span class="line">int <span class="function"><span class="title">main</span></span>()</span><br><span class="line">&#123;</span><br><span class="line"> Student s(<span class="string">&quot;YC1710011&quot;</span>, <span class="string">&quot;张明&quot;</span>, 90);</span><br><span class="line"> display(s);</span><br><span class="line"> s = 95;</span><br><span class="line"> display(s);</span><br><span class="line"> <span class="built_in">return</span> 0;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>运行结果：<br>学号：YC1710011<br>姓名：张明<br>总评成绩：90<br>学号：YC1710011<br>姓名：张明<br>总评成绩：95</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://leonlee233.github.io/2020/06/15/%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%AE%9E%E4%BE%8B/" data-id="clo6uzd8t00148cukef0cho49" data-title="运算符重载程序实例" class="article-share-link"><span class="fa fa-share">Teilen</span></a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Hide/" rel="tag">Hide</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%AD%A6%E4%B9%A0%E5%BF%83%E5%BE%97/" rel="tag">学习心得</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/06/04/%E5%A5%BD%E4%B9%85%E4%B8%8D%E8%A7%81/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          好久不见
        
      </div>
    </a>
  
  
    <a href="/2020/06/15/%E8%BF%90%E7%AE%97%E7%AC%A6%E9%87%8D%E8%BD%BD%E7%9F%A5%E8%AF%86%E7%82%B9%E5%8F%8A%E7%A4%BA%E4%BE%8B/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">运算符重载知识点及示例</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Hide/" rel="tag">Hide</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Literature-Review/" rel="tag">Literature Review</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9B%9E%E5%BF%86%E5%BD%95/" rel="tag">回忆录</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%A5%87%E6%80%AA%E7%9A%84%E7%A2%8E%E7%A2%8E%E5%BF%B5/" rel="tag">奇怪的碎碎念</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%AD%A6%E4%B9%A0%E5%BF%83%E5%BE%97/" rel="tag">学习心得</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" rel="tag">学习笔记</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%91%84%E5%BD%B1/" rel="tag">摄影</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%95%99%E7%A8%8B/" rel="tag">教程</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%B8%B8%E8%AE%B0/" rel="tag">游记</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%BE%8E%E5%9B%BE/" rel="tag">美图</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Hide/" style="font-size: 20px;">Hide</a> <a href="/tags/Literature-Review/" style="font-size: 10px;">Literature Review</a> <a href="/tags/%E5%9B%9E%E5%BF%86%E5%BD%95/" style="font-size: 12px;">回忆录</a> <a href="/tags/%E5%A5%87%E6%80%AA%E7%9A%84%E7%A2%8E%E7%A2%8E%E5%BF%B5/" style="font-size: 10px;">奇怪的碎碎念</a> <a href="/tags/%E5%AD%A6%E4%B9%A0%E5%BF%83%E5%BE%97/" style="font-size: 18px;">学习心得</a> <a href="/tags/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" style="font-size: 10px;">学习笔记</a> <a href="/tags/%E6%91%84%E5%BD%B1/" style="font-size: 14px;">摄影</a> <a href="/tags/%E6%95%99%E7%A8%8B/" style="font-size: 16px;">教程</a> <a href="/tags/%E6%B8%B8%E8%AE%B0/" style="font-size: 12px;">游记</a> <a href="/tags/%E7%BE%8E%E5%9B%BE/" style="font-size: 10px;">美图</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/10/">October 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/07/">July 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/">November 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/06/">June 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/06/">June 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/05/">May 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/">April 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2023/10/26/DETR%E7%AC%94%E8%AE%B0/">文章总结：DETR笔记</a>
          </li>
        
          <li>
            <a href="/2023/07/14/%E4%B8%80%E4%B8%AA%E5%A5%BD%E7%9A%84%E5%BC%80%E5%A7%8B/">一个好的开始</a>
          </li>
        
          <li>
            <a href="/2021/11/20/linux%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85/">linux系统的安装</a>
          </li>
        
          <li>
            <a href="/2021/11/20/%E5%A4%A7%E6%95%B0%E6%8D%AE%E5%9F%BA%E7%A1%80step1-hadoop/">大数据基础step1:hadoop</a>
          </li>
        
          <li>
            <a href="/2021/06/05/Linux%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">Linux学习笔记</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2023 Leon Lee<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">主页</a>
  
    <a href="/archives" class="mobile-nav-link">归档</a>
  
</nav>
    


<script src="/js/jquery-3.6.4.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>